<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:decorate template="/layout/input/editable-template.xhtml">
		<!-- 第一行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compBean1Id" value="defineName" />
			<ui:param name="compBean1Lable" value="流程名称" />
			<ui:param name="compBean1Required" value="true" />
			
			<ui:define name="compBean1Content">
				 <h:inputText id="#{compBean1Id}" styleClass="{required:true}" value="#{commonContentViewBean.fields.defineName}" />
			</ui:define>
			
		</ui:decorate>
		
		<!-- 第二行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compType" value="single" />
			
			<ui:param name="compBean1Id" value="defineDesc" />
			<ui:param name="compBean1Lable" value="流程描述" />
			
			<ui:define name="compBean1Content">
				 <h:inputText id="#{compBean1Id}" value="#{commonContentViewBean.fields.defineDesc}" />
			</ui:define>
		</ui:decorate>
		
		<!-- 第三行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compBean1Id" value="defineIcon" />
			<ui:param name="compBean1Lable" value="对应图标" />
			
			<ui:define name="compBean1Content">
				 <h:panelGrid columns="2" cellspacing="0" cellpadding="0" border="0">
					<h:selectOneMenu id="#{compBean1Id}" 
						onchange="#{commonContentViewBean.id}_changeDefineIcon()"
						value="#{commonContentViewBean.fields.defineIcon}">
						<f:selectItems value="#{commonContentViewBean.defineIconItems}"/>
					</h:selectOneMenu>
					<h:graphicImage id="#{compBean1Id}Image" width="48" height="48" style="margin-left:10px;" url="img/#{commonContentViewBean.defineIconPath}" />
				</h:panelGrid>
				<p:remoteCommand name="#{commonContentViewBean.id}_changeDefineIcon" update="#{compBean1Id}Image" />
			</ui:define>
			
			<ui:param name="compBean2Id" value="defineStatus" />
			<ui:param name="compBean2Lable" value="发布状态" />
			
			<ui:define name="compBean2Content">
				<sinox:selectOneMenu id="#{compBean2Id}" value="#{commonContentViewBean.fields.defineStatus}"
						items="#{commonContentViewBean.defineStatusItems}" />
			</ui:define>
		</ui:decorate>
		
		<!-- 第四行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compBean1Id" value="defineDoc" />
			<ui:param name="compBean1Lable" value="帮助文档" />
			
			<ui:define name="compBean1Content">
				<h:inputText id="defineDoc" value="#{commonContentViewBean.fields.defineDoc}" />
			</ui:define>
			
			<ui:param name="compBean2Id" value="defineVersion" />
			<ui:param name="compBean2Lable" value="版本" />
			<ui:param name="compBean2Editable" value="false" />
			
			<ui:define name="compBean2Content">
				 <h:outputText value="#{commonContentViewBean.fields.defineVersion}" />
			</ui:define>
		</ui:decorate>
		
		<!-- 第五行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compBean1Id" value="creator" />
			<ui:param name="compBean1Lable" value="创建者" />
			<ui:param name="compBean1Editable" value="false" />
			
			<ui:define name="compBean1Content">
				<h:outputText value="#{commonContentViewBean.fields.creator}" />
			</ui:define>
			
			<ui:param name="compBean2Id" value="createTime" />
			<ui:param name="compBean2Lable" value="创建时间" />
			<ui:param name="compBean2Editable" value="false" />
			
			<ui:define name="compBean2Content">
				 <h:outputText value="#{commonContentViewBean.fields.createTimeStr}" />
			</ui:define>
		</ui:decorate>
		
		<!-- 第六行 -->
		<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			<ui:param name="compBean1Id" value="laseUpdator" />
			<ui:param name="compBean1Lable" value="最后更新者" />
			<ui:param name="compBean1Editable" value="false" />
			
			<ui:define name="compBean1Content">
				<h:outputText value="#{commonContentViewBean.fields.lastUpdator}" />
			</ui:define>
			
			<ui:param name="compBean2Id" value="laseUpdateTime" />
			<ui:param name="compBean2Lable" value="最后更新时间" />
			<ui:param name="compBean2Editable" value="false" />
			
			<ui:define name="compBean2Content">
				 <h:outputText value="#{commonContentViewBean.fields.lastUpdateTimeStr}" />
			</ui:define>
		</ui:decorate>
	</ui:decorate>
</ui:composition>